package com.woniuxy.woniuticket.usermodule.utils;

import java.util.regex.Pattern;

//格式验证
public class RegexUtil {
    //手机验证格式
    //public static final String REGEX_MOBILE = "^((17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$";
    public static final String REGEX_MOBILE = "^[1][3,4,5,7,8][0-9]{9}$";
    //手机验证
    public static boolean isMobile(String mobile) {
        return Pattern.matches(REGEX_MOBILE, mobile);
    }
}
